android under the hood: beyond testing apis

Series: android under the hood: beyond testing apis

Draft
Android Under the Hood: Beyond Testing APIs · Part 2

Instrumented Tests Under the Hood: How Android Executes Your Code

Exploring the internals of Android instrumented tests: from AndroidJUnitRunner and TestInstrumentationRunner to ActivityTestRule and ActivityScenario. How instrumentation interacts with your app, and what really happens when you run tests on a device or emulator.

Author avatar Osman Suleimanov 25 min read
Draft
Android Under the Hood: Beyond Testing APIs · Part 3

Robolectric Internals: Shadow Worlds and JVM Illusions

Uncovering the secret world of Robolectric: how shadow classes replace Android SDK calls, how JVM illusions are created to simulate the environment, and why Robolectric tests aren't true Android tests. A technical and philosophical analysis of testing illusions.

Author avatar Osman Suleimanov 20 min read
Draft
Android Under the Hood: Beyond Testing APIs · Part 4

Espresso Synchronization and UI Control: Inside Android's Test Framework

A deep analysis of Espresso's inner mechanics: thread synchronization, idling resources, and Looper interactions. How Espresso knows when your UI is 'idle', and the hidden challenges behind writing stable UI tests in Android.

Author avatar Osman Suleimanov 25 min read
Draft
Android Under the Hood: Beyond Testing APIs · Part 5

Bytecode Manipulation and Control: MockK vs Mockito in Kotlin

Exploring the bytecode hacking magic behind MockK and Mockito: how they manipulate objects, handle static calls, and break Kotlin's final restrictions. A technical journey into runtime control and the philosophy of object mocking.

Author avatar Osman Suleimanov 20 min read
Draft
Android Under the Hood: Beyond Testing APIs · Part 6

Readable UI Tests with Kaspresso and Kakao: DSLs Beyond Espresso

Dissecting Kaspresso and Kakao: how Kotlin DSLs improve UI test readability, why Kaspresso enhances stability, and the real value of scenario-based structures. Technical internals and design philosophy behind these frameworks.

Author avatar Osman Suleimanov 20 min read
Draft
Android Under the Hood: Beyond Testing APIs · Part 7

Compose Test Internals: Semantics Tree and Declarative UI Verification

A deep dive into how Compose testing works: the semantics tree, declarative UI test APIs, and the differences from traditional View tests. How Compose tests simplify UI verification but introduce new hidden challenges.

Author avatar Osman Suleimanov 20 min read